// main.ts
import { createApp } from 'vue';
import ElementPlus from 'element-plus';
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import 'element-plus/dist/index.css';
import 'virtual:windi.css';
import App from '@/App.vue';
import router from '@/router';

//获取环境变量
console.log(import.meta.env.VITE_APP_BASE_API);
//SVG 需要的配置代码
import 'virtual:svg-icons-register';
//引入全局组件
import globalComponent from '@/globalComponent';
import pinia from '@/store';
//引入全局样式
import '@/styles/index.scss';
const app = createApp(App);
app.use(router);
// 设置默认组件大小
app.use(ElementPlus, {
  locale: zhCn,
  size: 'small'
});
app.use(pinia);
app.use(globalComponent);
app.mount('#app');
